//
//  GlobalPath.h
//  youyue
//
//  Created by oceans on 2018/8/13.
//


#import "NSString+rule.h"

#ifndef GlobalPath_h
#define GlobalPath_h

//登录成功通知
#define klogin_notification @"klogin_notification"

//新接口地址
#define kbase_path @"http://api.oppoedu.com"

//h5地址
#define kh5_path @"http://vue.oppoedu.com/#"

/**图片上传*/
#define kupload_image [kbase_path x:@"/attachs/upload"]

//获取app access token
#define kget_access_token [kbase_path x:@"/oauth2/authorize"]

/**更新用户信息*/
#define kupdate_userinfo [kbase_path x:@"/user/profile/update"]

//获取首页信息
#define kget_home_header_data [kbase_path x:@"/site/home"]
#define kget_home_data [kbase_path x:@"/course"]

//获取课程分类
#define kget_class_category [kbase_path x:@"/course/category/index"]
//检索课程
#define kget_class_search [kbase_path x:@"/course/search/index"]
/**空列表时的推荐课程*/
#define kget_class_rec [kbase_path x:@"/course/recommend"]

/**学校列表*/
#define kschool_list [kbase_path x:@"/school"]

/**教师列表*/
#define kteacher_list [kbase_path x:@"/educater/teacher"]
/**教师精品课程*/
#define kteacher_class [kbase_path x:@"/educater/teacher/course"]

/**关注/取消关注*/
#define kfocus [kbase_path x:@"/user/follow/attention"]

//发现列表
#define kget_moment [kbase_path x:@"/dynamic"]

/**我的关注学校*/
#define kfocus_school [kbase_path x:@"/user/follow/school"]

/**我的关注老师*/
#define kfocus_teacher [kbase_path x:@"/user/follow/teacher"]

/**浏览记录*/
#define kmine_history [kbase_path x:@"/user/history"]

/**我的课程*/
#define kmine_class [kbase_path x:@"/user/course"]

//发现点赞
#define kmoment_like [kbase_path x:@"/dynamic/extend/like"]

/**发现评论*/
#define kmoment_discuss [kbase_path x:@"/dynamic/comment/create"]

//短信验证码
#define kget_code [kbase_path x:@"/sms/captcha"]

//账号密码登录
#define klogin_pass [kbase_path x:@"/passport/login"]

//账号注册
#define kregister [kbase_path x:@"/passport/register"]

//手机登录
#define kmobile_login [kbase_path x:@"/passport/signin"]

/**自动登录*/
#define kauto_login [kbase_path x:@"/passport/mine"]

/**退出登录*/
#define klogout [kbase_path x:@"/passport/logout"]

/**第三方登录*/
#define kthird_login [kbase_path x:@"/third-party/connect"]

/**qq登录*/
#define kqq_login [kbase_path x:@"/third-party/qq"]

/**闪屏页*/
#define ksplash [kbase_path x:@"/site/bootsplash"]

/**找回密码*/
#define kfind_password [kbase_path x:@"/passport/forget"]

/**绑定新手机号*/
#define kbinding_phone [kbase_path x:@"/passport/bind-mobile"]

/**聊天列表*/
#define kmessage_list [kbase_path x:@"/user/group"]

/**发起支付*/
#define kpayment [kbase_path x:@"/course/order/create"]

/**发布活动*/
#define kcreate_activity [kbase_path x:@"/course/apply/create"]

/**获取融云 用户信息*/
#define kget_ry_userinfo [kbase_path x:@"/user/default/%@"]
/**获取融云群用户*/
#define kget_ry_groupuser [kbase_path x:@"/course/group/user"]

/**修改群名称*/
#define kchange_group_name [kbase_path x:@"/course/group/rename"]
/**退出群聊*/
#define kexit_group [kbase_path x:@"/course/group/quit"]

/**获取账户安全验证码*/
#define kget_code_account [kbase_path x:@"/sms/account"]

/**验证账户安全验证码*/
#define kcheck_code_account [kbase_path x:@"/sms/account-check"]

/**登录状态重置密码*/
#define kreset_password [kbase_path x:@"/passport/reset-password"]

/**帮助h5*/
#define kh5_help [kh5_path x:@"/help"]
/**jsbridge*/
#define kh5_jsbridge [kh5_path x:@"/jsbridge"]
#endif /* GlobalPath_h */
